package com.yidu.menuProject.dao;

import java.util.List;

import com.yidu.menuProject.action.vo.EhyRoleVo;
import com.yidu.menuProject.model.EhyRoleModel;

public interface EhyRoleModelMapper {
	  int deleteByPrimaryKey(String roleId);

	    int insert(EhyRoleModel record);

	    int insertSelective(EhyRoleVo vo);

	    EhyRoleModel selectByPrimaryKey(String roleId);

	    int updateByPrimaryKeySelective(EhyRoleVo vo);

	    int updateByPrimaryKey(EhyRoleModel record);
	    
	    
	    /**
	  	 * 
	  	 * 修改上屏
	  	 * @return
	  	 */
	  	public EhyRoleModel showUpdate(String id);
	  	
	  	public int selectCount(EhyRoleVo vo);
	  	
	  	/**
	    	 * 查询所有
	    	 * @param vo
	    	 * @return
	    	 */
	  	List<EhyRoleModel> selectAll(EhyRoleVo vo);
		List<EhyRoleModel> selectRole(EhyRoleVo vo);

	  	/**
	  	 * 增加操作
	  	 * @param po
	  	 * @return 
	  	 */
	  	public void saveOrUpdate(EhyRoleModel po);
	  	
	  	/**
	  	 * 删除模块
	  	 * @param id
	  	 * @return 
	  	 */
	  	public int delete(String id);
	  	
	  	
	  	
	  	
	  	/**
	  	 * 根据id查询模块
	  	 */
	  	public EhyRoleModel  findById(String id);
	  	
	  	public List<EhyRoleModel> selectManagerRole(EhyRoleVo vo);
	  	
	  	
	  	/**  
	  	 * 查询所有角色
	  	 * @return 集合  
	  	 */

	  	public List<EhyRoleModel> findRole();
}

